<?php
class Mail_Notifications extends Functions{
    
    public function mail_reset_password($val = array()){
        $serverName = $this->curPageURL("serverName");
    
        $generated_password = $val['generated_password'];
        $link = $val['reset_password_url'];
        //"http://ebrochure.gs3.com.ph/reset_password?id=";
        
        $mail_title = "Your password was successfully reset.";
        
        $mail_body = "";
            $mail_body .= '<div style="">';
                //$mail_body .= '<img src="' . $serverName . COMPANY_LOGO .'"  height="30" width="20%" style="border:2px solid #E54BA6;border-radius:5px;">';
                //$mail_body .= '<br><br>';
                //$mail_body .= '<p style="border:2px solid #E54BA6;"></p>';
                $mail_body .= '<p>';
                $mail_body .= 'Please save this message for future reference.';
                $mail_body .= '</p>';
                $mail_body .= '<p>';
                $mail_body .= 'Your new <strong>' . PROJECT_NAME . '</strong> password was successfully reset.';
                $mail_body .= '<p>';
                $mail_body .= '<p>';
                    $mail_body .= '<p style="margin-left:40px;">';
                    $mail_body .= 'Here are your account details:';
                    $mail_body .= '</p>';
                        $mail_body .= '<p style="margin-top:-10px;margin-left:148px;">';
                            $mail_body .= '<strong>Link: </strong> <a href="' . $link . '" target="_blank">Click Here</a>';
                            $mail_body .= '<br>';
                        $mail_body .= '</p>';
                        $mail_body .= '<p style="margin-top:-10px;margin-left:60px;">';
                            $mail_body .= '<strong>Your new password: </strong> ' . $generated_password;
                        $mail_body .= '</p>';
                $mail_body .= '<p style="border:2px solid #E54BA6;"></p>';
                
                $mail_body .= '<p>';
                    $mail_body .= '© ' . date('Y') . ' <b>' . COMPANY_NAME . '  ' . PROJECT_NAME  .' </b> Limited.';
                    $mail_body .= '<br>The <b>' . PROJECT_NAME . ' </b> logo, and InMail are registered trademarks of <b> ' . COMPANY_NAME . ' </b>  in the Philippines. All rights reserved.';
                $mail_body .= '</p>';
            $mail_body .= '</div>';
            //return $mail_body;
            // SendMail
            
            $this->sendEmail_smtp($mail_body, $val['to'], $val['cc'], $val['cc'], EMAIL_DO_NOT_REPLY, COMPANY_NAME, $mail_title);
    }
    
    
    
}